public class Course {
    private String courseId;    // 课程编号
    private String courseName;  // 课程名称
    private String location;    // 上课地点
    private String time;        // 上课时间
    private Teacher teacher;    // 授课教师

    // 构造方法
    public Course(String courseId, String courseName, String location, String time, int credit, Teacher teacher) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
        this.teacher = teacher;
    }

    // Getter 方法
    public String getCourseId() { return courseId; }
    public String getCourseName() { return courseName; }
    public String getLocation() { return location; }
    public String getTime() { return time; }
    public Teacher getTeacher() { return teacher; }
}